<!DOCTYPE html>
<html lang="en">
<head>
    <title>处方列表</title>
    <titleType style="display: none;">yjjList</titleType>
    <%- include('../../_global/baseLibsJKDA') %>
    <script src="/static/lib/forweb.js"></script>
    <script src="/static/js/aboutPay.js"></script>
    <script src="/quickJs/scripts/swiper/3.4.2/js/swiper.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/payment.css">
    <link rel="stylesheet" type="text/css" href="/static/css/page.css">
    <link rel="stylesheet" type="text/css" href="/static/css/public.css">
     <script src="/quickJs/scripts/common/md5.js"></script>

      

</head>
<style>
    .hospital-detail .hospital-jj-box .text-box span.yellow {
        margin-left: 0.5rem !important;
    }
</style>

<body>

<header class="header-box fixed grey">
    <div class="header-content">
        <div class="left-tool">
            <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
        </div>
        <div class="title">处方列表</div>
    </div>
</header>
<section class="page-wrap hospital-detail" style="width: 100%;position: absolute;">
    <div id="ListTabBox">
        <div class="tab active" id="allBill" index="0">
           
           
        </div>
    </div>
</section>




</body>

</html>
<script>
    window.onload = function() {
        initAllData();
    }

    /**加载数据*/
    function initAllData() {

        var prescription = StoreCache.getCache("mzInfo");
        prescription = {
            "zxwyh" : prescription.pid,
            "medicalOrgId" : prescription.hosCode,
            "serialNum" : prescription.serialNum,
            "currentPage":"",
            "pageSize":""
        };
        $.QuickRemote.AjaxJson($.getMyorderUrl.getpageUrl("getPrescriptionRecord"), prescriptionList,prescription);
        function prescriptionList(data) {
            // var obj = {
            //     data : data
            // }
            $('#allBill').append(template("dscfList", {data:data}));

            // if(data.length>0){
            //     var str="";
            //     for(var i=0,per;per=data[i++];){
            //         str+='<div class="presList">'+
            //                 '<ul class="bilsContent" onclick="redirect()">'
            //                     +'<li><span class="grayFont">开方时间 :</span>'+ per.preDate+'</li>'
            //                     +'<li><span class="grayFont">开方医生姓名 :</span>'+per.docName+'</li>'
            //                     +'<li class="payInfo"><div><span class="grayFont">开方科室名称:</span>'
            //                     +per.prescribeDept+'</div>'
            //                     +'</li>'
            //                     +'<li><span class="grayFont">处方号码 :</span>'+per.prescriptionId+'</li>'
            //                     +'<li><span class="grayFont">处方金额 :</span>'+per.prescriptionAmount+'</li>'
            //                 +'</ul>'
            //             +'<div>'
                   
            //     }
            // $('#allBill').append(str);
               
            //     }
            
        }
        
        
    }
    $(".bilsContent").on("click", redirect);
    function  redirect() {
        // $.QuickUrlUtils.redirectJSBridge({url:"/html/jkda/jzjl/dzcf/dzcfDetail.html"});
        $.pageSwitch.goToUrl("jkda", "dzcfDetail");

    }

</script>
<script type="text/html" id="dscfList">
    {{each data}}
        <div class="presList">
            <ul class="bilsContent" onclick="redirect()">
                <li>
                    <span class="grayFont">开方时间:</span>{{$value.preDate}}
                </li>
                <li>
                    <span class="grayFont">开方医生姓名:</span>{{$value.docName}}
                </li>
                <li>
                    <div>
                        <span class="grayFont">开方科室名称:</span>{{$value.prescribeDept}}
                    </div>
                </li>
                <li>
                    <span class="grayFont">处方号码:</span>{{$value.prescriptionId}}
                </li>
                <li>
                    <span class="grayFont">处方金额:</span>{{$value.prescriptionAmount}}
                </li>
            </ul>
        <div>
    {{/each}}
</script>



